
const dbType = [
  {
    db: 'Department',
    collection: 'departments',
    description: '部门信息',
    fields: {
      name: '部门名称 (String)'
    }
  },
  {
    db: 'JobTicket',
    collection: 'jobtickets',
    description: '作业信息',
    fields: {
      jobTicketId: '作业编号 (String, default: uuidv4)',
      departmentId: '部门ID（关联 departments._id）(ObjectId, ref: Department)',
      typeId: '作业类型ID（关联 types._id）(ObjectId, ref: Type)',
      createTime: '创建时间 (Number, default: Date.now())',
      workPlace: '工作地点 (String)',
      workContent: '工作内容 (String)',
      workCompany: '工作公司 (String)',
      workStartTime: '工作开始时间 (Number)',
      workEndTime: '工作结束时间 (Number)',
      statusId: '状态ID（关联 statuses._id）(ObjectId, ref: Status)'
    }
  },
  {
    db: 'Status',
    collection: 'statuses',
    description: '作业状态信息',
    fields: {
      name: '作业状态名称 (String)'
    }
  },
  {
    db: 'Type',
    collection: 'types',
    description: '作业类型信息',
    fields: {
      name: '作业类型名称 (String)'
    }
  }
];

module.exports = dbType;